package com.hko.qrip;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.beans.factory.annotation.Autowired;

import com.hko.qrip.service.PilotReportService;
import com.hko.qrip.service.SyncService;

public class QripJob {
	@Autowired
	private PilotReportService pilotReportService;
	@Resource(name = "serviceList")
	private List<SyncService> serviceList;

	public void run() {

		try {
			for (SyncService service : serviceList) {
				service.doSync();
			}
		} catch (Exception e) {
			e.printStackTrace();
		}

	}
}
